import Vue from 'vue'
import App from './App.vue'
import * as API from './api/request.js'
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import router from './router/router'
import sideBar from './components/sideBar'
import topHead from './components/topHead'
import setTime from './components/setTime'

Vue.use(ElementUI)
Vue.component('sideBar',sideBar)
Vue.component('topHead',topHead)
Vue.component('setTime',setTime)

Vue.config.productionTip = false

new Vue({
  render: h => h(App),
  beforeCreate(){
    Vue.prototype.$API = API
  },
  router
}).$mount('#app')
